<div class="ddd-bd dylb">
	<button class="btn btn-primary canclePlanBtn">批量暂停配送</button>
    {{each records as order index}}
    <div class="orderbox mb10">
        <div class="order-hd">
            <ul class="ul-order">
                <li>服务编号：
                {{if order.isOldData==true }}
                	<a href="#order/order/{{order.of_id}},7">{{order.of_id}}</a>
                {{else}}
                	<a href="#order/order/{{order.of_id}},1">{{order.of_id}}</a>
                {{/if}}
                </li>
                <li>付款时间：{{order.pay_time}}</li>
                <li>下单时间：{{order.add_time}}</li>
                {{if order.havNew==1}}
                <li>
	                <i class="iconfont mes-info mesInfo" data-rela-id="{{order.of_id}}" data-module-type="2">&#xe6a2;</i>	
                </li>
                {{/if}}
            </ul>
        </div>
        <div class="order-bd">
            <ul>
                <li>
                    <div class="fm-goods-info">
                        <div class="fm-goods-img">
                            <!--  
                            <a href="javascript:void(0);">
                                <img src="{{url}}/{{order.goods_main_photo_url}}" />
                            </a>
                            -->
                            <img src="{{url}}/{{order.goods_main_photo_url}}" />
                        </div>
                        <div class="fm-goods-con">
                            <p class="maintitle">
                                <!--  <a href="javascript:void(0);">{{order.goods_name}}</a>  -->
                                {{order.goods_name}}
                            </p>
                            <p class="subtitle">
                               {{order.goods_subhead}}
                            </p>
                        </div>
                    </div>
                    <div class="fm-goods-price">
                    	<p>用户账号：<a href="#order/adminlist/{{order.user_id}}">{{order.user_account}}</a></p>
                        <p>用户名：{{order.username}}</p>
                        <p>服务价格：<span class="colorred">￥{{order.price}}</span></p>
                        <p>服务状态：{{order.state_name}}</p>
                        
                    </div>
                    <div class="fm-goods-memo">
                    	<p>
                           	 配送总次数：{{order.delivery_times}}
                        </p>
                    	{{if order.state==1}}
                        <p>剩余配送次数：{{order.surplus_times}}
                        	{{if order.surplus_times > 0}}
                        	<a href="javascript:void(0);" class="numsBtn" style="margin-left:10px;" data-surplus-times={{order.surplus_times}} data-goods-id="{{order.goods_id}}" data-id="{{order.of_id}}"><i class="iconfont">&#xe60f;</i></a>
                        	{{/if}}
                        	<a href="javascript:void(0);" class="listBtn" data-alter-type=1 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
                        </p>
                        {{/if}}
                        <p>
                           	 配送时间：{{order.fvo.key}}
                       {{if order.state !=4 && order.state !=2}}
                        	<a href="javascript:void(0);" class="timesBtn" data-goods-id="{{order.goods_id}}" data-id="{{order.of_id}}" data-times={{order.fvo.key}}><i class="iconfont">&#xe60f;</i></a>
                        	<a href="javascript:void(0);" class="listBtn" data-alter-type=2 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
                    	{{/if}}
                        </p>
                        
                    	<p>
                           	 配送频率：{{order.frequencyComb}}
                       {{if order.state ==1 || order.state==2}}
                        <a href="javascript:void(0);" class="pilvBtn" data-order-id="{{order.of_id}}" data-frequency-type={{order.frequencyComb_type}}><i class="iconfont">&#xe60f;</i></a>
                        <a href="javascript:void(0);" class="listBtn" data-alter-type=3 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
                    	{{/if}}
                        </p>
                         
                    </div>
                    
                    <div class="fm-goods-memo">
                        <p>
                        {{order.address_info}},{{order.true_name}},{{order.mobile}}
                         {{if order.state !=4}}
                           <a href="javascript:void(0);" class="addrBtn" data-id="{{order.of_id}}"><i class="iconfont">&#xe60f;</i></a>
                           <a href="javascript:void(0);" class="listBtn" data-alter-type=4 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
                        {{/if}}
                        </p>
                            {{if order.remark !=""}}
		                    	<div class="memobox fl">
		                    		<a href="javascript:void(0);" class="memolink"  data-placement="top" data-content="{{order.remark}}">
		                    			{{order.remark}}
		                    		</a>
		                    		
		                    	</div>
		                    	<div class="fl" style="margin:0 0 0 5px;">
		                    		<a href="javascript:void(0);" class="memoBtn" data-id="{{order.of_id}}" data-remark="{{order.remark}}" data-type="2"><i class="iconfont">&#xe60f;</i></a>
		                    	   <a href="javascript:void(0);" class="listBtn" data-alter-type=5 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
		                    	</div>
		                    	<div class="clearit"></div>
	                    	{{else}}
	                    	    <p>无备注 <a href="javascript:void(0);" class="memoBtn" data-id="{{order.of_id}}" data-type="1"><i class="iconfont">&#xe60d;</i>新增</a>
	                    		</p>
	                    	{{/if}}
	                    	{{if order.consumption !=""}}
	                    		<div class="memobox fl">
		                    		<a href="javascript:void(0);" class="memolink"  data-placement="top" data-content="{{order.consumption}}">
		                    			{{order.consumption}}
		                    		</a>
		                    		
		                    	</div>
		                    	<div class="fl" style="margin:0 0 0 5px;">
		                    		<a href="javascript:void(0);" class="memoBtn" data-id="{{order.of_id}}" data-remark="{{order.consumption}}" data-type="4"><i class="iconfont">&#xe60f;</i></a>
		                    	   <a href="javascript:void(0);" class="listBtn" data-alter-type=7 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
		                    	
		                    	</div>
		                    	<div class="clearit"></div>
	                    	{{else}}
                    			<p>无消费习惯 <a href="javascript:void(0);" class="memoBtn" data-id="{{order.of_id}}" data-type="3"><i class="iconfont">&#xe60d;</i>新增</a></p>
	                    	{{/if}}
	                    	{{if order.distribution !=""}}
	                    		<div class="memobox fl">
		                    		<a href="javascript:void(0);" class="memolink"  data-placement="top" data-content="{{order.distribution}}">
		                    			{{order.distribution}}
		                    		</a>
		                    		
		                    	</div>
		                    	<div class="fl" style="margin:0 0 0 5px;">
		                    	<a href="javascript:void(0);" class="memoBtn" data-id="{{order.of_id}}" data-remark="{{order.distribution}}" data-type="6"><i class="iconfont">&#xe60f;</i></a>
		                    	   <a href="javascript:void(0);" class="listBtn" data-alter-type=8 data-order-id="{{order.of_id}}"><i class="iconfont">&#xe611;</i></a>
		                    	</div>
		                  		<div class="clearit"></div>
	                    	{{else}}
                    			<p>无配送需求 <a href="javascript:void(0);" class="memoBtn" data-id="{{order.of_id}}" data-type="5"><i class="iconfont">&#xe60d;</i>新增</a></p>
	                    	{{/if}}
                    </div>
                    <div class="fm-goods-result">
                     {{if order.state !=4}}
                          <button class="btn btn-primary mb10 planBtn" data-id="{{order.id}}" data-order-id="{{order.of_id}}" type="button" {{if order.state ==2}} disabled="disabled" {{/if}} data-force="0">调整配送计划</button>
                    	  <button class="btn btn-primary mb10 planBtn" data-id="{{order.id}}" data-order-id="{{order.of_id}}" type="button" {{if order.state ==2}} disabled="disabled" {{/if}} data-force="1">强制调整配送计划</button>
                     {{else}}
                     	——
                     {{/if}}
                    </div>
                    <div class="clearit"></div>
                </li>
            </ul>
        </div>
    </div>
{{/each}}    
</div>